export const commonFontProperties = {
    fontFamily: {
        type: 'string',
        title: '字体列表',
        'x-decorator': 'FormItem',
        'x-component': 'Select',
        'x-component-props': {
            style: {
                width: 400,
            },
        },
        enum: [{
            label: '楷体',
            value: 1,
        },
        {
            label: '宋体',
            value: 2,
        }],


    },
    fontSize: {
        type: 'object',
        title: '字体大小',
        'x-decorator': 'FormItem',
        'x-component': 'InputButton',
        'x-component-props': {
        },
    },
    fontWeight: {
        type: 'number',
        title: '字体粗细',
        'x-decorator': 'FormItem',

        'x-component': 'InputNumber',

    },
    lineHeight: {
        type: 'number',
        title: '行高大小',
        'x-decorator': 'FormItem',
        'x-component': 'InputNumber',
        'x-component-props': {
           

        },
    },
    letterSpacing: {
        type: 'number',
        title: '字体间距',
        'x-decorator': 'FormItem',
        'x-component': 'InputNumber',
        'x-component-props': {
           

        },
    },
    textAlign: {
        type: 'string',
        title: '对齐方式',
        enum: [
            {
                label: '左对齐',
                value: 'left',
            },
            {
                label: '居中',
                value: 'center',
            },
            {
                label: '右对齐',
                value: 'right',
            },
        ],
        'x-decorator': 'FormItem',
        'x-component': 'Radio.Group',
        'x-component-props': {
            optionType: 'button',
            size: 'mini'
        },
    },
    fontStyle: {
        type: 'string ',
        title: '是否斜体',
        'x-decorator': 'FormItem',
        'x-component': 'Switch',
        'x-component-props': {
            activeValue: 'italic',
            inactiveValue: "normal"
        }
    },
    color: {
        type: 'string',
        title: '字体颜色',
        'x-decorator': 'FormItem',
        'x-component': 'PickerInput',
        'x-component-props': {
            style: {
                width: 200
            },
            // onChange:'onFormValuesChange'
        },
        required: false,
    },
}
